<div class="idx-head" id="idxHead">
    <div class="idx-top layui-row">
        <div class="page-width">
            <div class="welcome fl">
                <p>
                    hi~欢迎来到{{d.shortName}}
                    <!--<span class="nav-line">|</span>-->
                    <!--服务热线：{{d.serviceTel}}-->
                </p>
            </div>
            <div class="user fr">
                {{#if(d.user){}}
                <ul class="layui-nav">
                    <li class="layui-nav-item">
                        <a href="/manage.html#/cost/standard">收费标准</a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="/manage.html#/"><img id="user-head-head" src="{{d.user.userHead?d.user.userHead:'/img/default.jpg'}}"/><span>{{d.user.personName}}</span></a>
                        <dl class="layui-nav-child">
                            <dd><a href="/manage.html#/order/manage">快捷下单</a></dd>
                            <dd><a href="/manage.html#/">个人中心</a></dd>
                            <dd><a href="javascript:" zmark-event="layui.com.logout">安全退出</a></dd>
                        </dl>
                    </li>
                </ul>
                {{#}else{}}
                <a href="/login.html" class="login-btn">登录/注册 一键下单</a>
                {{#}}}
                <!--<span class="nav-line">|</span>-->
                <!--<a href="javascript:" title="{{d.realmName}}"> <i class="layui-icon layui-icon-rate-solid"></i>收藏我们</a>-->
            </div>
        </div>
    </div>
    <div class="idx-nax layui-row">
        <div class="page-width ">
            <div class="logo-box fl">
                <a href="/" class="logo" title="{{d.shortName}}"></a>
                <!--<span class="logo-desc">-->
                <!--{{d.shortName}}<br> 智能供应链-->
            </span>
            </div>
            <div class="nav-box fr">
                <ul class="layui-nav" lay-filter="top-nav">
<!--                    <li class="layui-nav-item"><a href="/index.html" class="nav">首页</a></li>-->
<!--                    <li class="layui-nav-item"><a href="/technology.html" class="nav">技术</a></li>-->
<!--                    <li class="layui-nav-item"><a href="/service.html" class="nav">服务</a></li>-->
                    <li class="layui-nav-item"><a href="/about.html" class="nav">企业简介</a></li>
                    <li class="layui-nav-item"><a href="/contact.html" class="nav">联系我们</a></li>
                    <li class="layui-nav-item"><a href="/news.html" class="nav">新闻公告</a></li>
                </ul>
            </div>
        </div>
    </div>
</div>
<script>
    layui.define(['element'],function (exports) {
        var element = layui.element,com = layui.com,$ = layui.jquery,$noEffect=$('.no-effect'),$head=$('#idxHead'),fn = {
            watchScroll:function () {
                if($(document).scrollTop()>0){
                    $head.addClass('white');
                }else{
                    $head.removeClass('white');
                }
            }
        };
        element.render('nav');
        if($noEffect.length==0){
            fn.watchScroll();
            $(document).scroll(function() {
                fn.watchScroll();
            });
        }else{
            $head.addClass('white');
        }
        $head.find('a[href="'+(location.pathname!='/'?location.pathname:'/index.html')+'"].nav').parent().addClass('layui-this');
    });
</script>